<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License

Name       : Wellness  
Description: A two-column, fixed-width design with dark color scheme.
Version    : 1.0
Released   : 20100110

-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php echo $html->charset(); ?>
	<title>
		<?php __('Cake CMS:'); ?>
		<?php echo $title_for_layout; ?>
	</title>
	<?php
		echo $html->meta('icon');

		#echo $html->css('960gs/reset');
		#echo $html->css('960gs/text');
		#echo $html->css('960gs/960');
		echo $html->css('style');

		echo $scripts_for_layout;
	?>
</head>
<body>
<div id="wrapper">
	<div id="header-wrapper">
	<div id="header">
		<div id="logo">
			<h1><a href="#">OpenCMS </a></h1>
			<p>an Open Source CMS created using CakePHP</p>
		</div>
	</div>
	</div>
	<!-- end #header -->
	<div id="page">
	<div id="page-bgtop">
	<div id="page-bgbtm">
		<div id="content">
			<?php
				$session->flash();
				$session->flash('auth');
			?>
			<?php echo $content_for_layout; ?>
		<div style="clear: both;">&nbsp;</div>
		</div>
		<!-- end #content -->
		<div id="sidebar">
			<ul>
				<?php if($session->check('Auth.User.id')): ?>
				<li>
					<h2>Main Menu</h2>
					<ul>
						<li><?php echo $html->link('Pages','/pages'); ?></li>
						<li><?php echo $html->link('Posts','/posts'); ?></li>
						<li><?php echo $html->link('Users','/users'); ?></li>
						<li><?php echo $html->link('Logout','/users/logout'); ?></li>
				</li>
				<?php else: ?>
				<li>
					<h2>Main Menu</li>
					<ul>
						<li><?php echo $html->link('Login','/users/login'); ?></li>
					</ul>	
				</li>
				<?php endif; ?>
				<li>
					<h2>Aliquam tempus</h2>
					<p>Mauris vitae nisl nec metus placerat perdiet est. Phasellus dapibus semper consectetuer hendrerit.</p>
				</li>
				<?php echo $this->element('sidebar'); ?>
			</ul>
		</div>
		<!-- end #sidebar -->
		<div style="clear: both;">&nbsp;</div>
	</div>
	</div>
	</div>
	<!-- end #page -->
</div>
	<div id="footer">
		<p>Copyright (c) 2008 Sitename.com. All rights reserved. Design by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a>.</p>
	</div>
	<!-- end #footer -->
</body>
</html>